﻿using System.ComponentModel.DataAnnotations;
using OperationPlugins.Validators.DataAnnotations;

namespace TimeProject.WebSite.ViewModels
{
    [UsePluginValidators]
    public partial class UserViewModel
    {
        [Display(Name = "#")]
        public int UserId { get; set; }

        [Display(Name = "Username")]
        public string Username { get; set; }

        [Display(Name = "Full name")]
        public string FullName { get; set; }

        [Display(Name = "Email")]
        public string EMail { get; set; }

        [Display(Name = "Is active?")]
        public bool IsActive { get; set; }

        [Display(Name = "Status")]
        public string StatusText
        {
            get { return IsActive ? "Active" : "Locked"; }
        }

        //public UserModel()
        //{
        //    ProjectId = -1;
        //    TaskId = -1;
        //}

        //public int ProjectId { get; set; }
        //public int TaskId { get; set; }
    }
}